import React, { PureComponent } from 'react'

export default class App extends PureComponent {
  constructor(props) {
    super(props)

    this.state = {
      color: 'purple'
    }
  }

  render() {
    const pStyle = {
      color: this.state.color,
      textDecoration: 'underline'
    }

    return (
      <div>
        <h2 style={{fontSize: '20px', color: 'red'}}>Title</h2>
        <p style={pStyle}>Content</p>
      </div>
    )
  }
}